package Decorator_Pattern;

public class Milk extends CondimentDecorator {
    protected Beverage beverage;
    public Milk(Beverage beverage){
        this.beverage=beverage;
    }

    public String getDescription() {
        return beverage.getDescription()+",加奶";
    }

    public double cost() {
        return 2.3+beverage.cost();
    }
}
